<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript" src="../js/angular.min.js"></script>
		<script type="text/javascript" src="../js/angular-route.min.js"></script>
	</head>
	<!--定义模块名 -->

	<body ng-app="myapp" ng-controller="myctrol">
		<div>
			<h1>hhhajshdjah</h1>
			<a href="#/JavaEE">JavaEE</a>
			<a href="#/PHP">PHP</a>
			<a href="#/IOS">IOS</a>
		</div>
		<div ng-view>
		</div>
		<div>
			<h1>end</h1>
		</div>

		<script type="text/javascript">
			//初始化模块
			var myapp = angular.module("myapp", ["ngRoute"])
			//定义模块的控制器
			//注入$scope作用域对象
			myapp.controller("myctrol", ["$scope", function($a) {

			}])
			//配置模块的路由
			myapp.config(["$routeProvider",function($b){
				$b.when('/JavaEE',{
					templateUrl:"5_1.html"
				}).when('/PHP',{
					templateUrl:"5_2.html"
				}).when('/IOS',{
					templateUrl:"5_3.html"
				}).otherwise({
					redirectTo:"JavaEE"
				})
			}])
		</script>
	</body>

</html>